(function(window,document){
	var WordLimit = function(cla,len){
		var ele = document.getElementsByClassName(cla);
		for(var i=0;i<ele.length;i++){
			if(ele[i].innerHTML.length > len){
				ele[i].innerHTML = ele[i].innerHTML.substr(0,len) + "...";
			}else{
				ele[i].innerHTML = ele[i].innerHTML.substr(0,len);
			}
		}	
	};
	window.WordLimit = WordLimit;
}(window,document));




	